package com.numberousfor.property.web;

import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.numberousfor.property.web.api.ApartmentShapeReqDTO;
import com.numberousfor.property.web.api.AreaReqDTO;
import com.numberousfor.property.web.api.BnitReqDTO;
import com.numberousfor.property.web.api.BuildReqDTO;
import com.numberousfor.property.web.api.RoomReqDTO;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

//刘强测试陈志铉增加的内容 20190621
@Api(tags=" community领域对象下的接口")
@Controller
@RequestMapping("/community")
public class CommunityController {

	//区域增加
	@ApiOperation(value="增加区域")
	@RequestMapping(value="/area/add.do",method=RequestMethod.POST,produces=MediaType.APPLICATION_JSON_VALUE)
	public @ResponseBody Integer addAreaName(@RequestBody AreaReqDTO areaReqDTO) {
		
		
		return null;
	}
	
	//楼栋增加
	@ApiOperation(value="增加楼栋")
	@RequestMapping(value="/building/add.do",method=RequestMethod.POST,produces=MediaType.APPLICATION_JSON_VALUE)
	public @ResponseBody String addBuilding(@RequestBody BuildReqDTO buildReqDTO) {
		
		return null;
	}
	
	//单元号增加
	@ApiOperation(value="增加单元楼")
	@RequestMapping(value="/uint/add.do",method=RequestMethod.POST,produces=MediaType.APPLICATION_JSON_VALUE)
	 public @ResponseBody String addUnit(@RequestBody BnitReqDTO bnitReqDTO) {
		 
		 return null;
	 }
	 
	//户型类型增加
	@ApiOperation(value="增加户型")
	@RequestMapping(value="/apartmentshape/add.do",method=RequestMethod.POST,produces=MediaType.APPLICATION_JSON_VALUE)
	 public @ResponseBody String addApartmentShape(@RequestBody ApartmentShapeReqDTO apartmentShapeReqDTO) {
		 
		return null;
	 }
	 
	//房间增加
	@ApiOperation(value="增加房间")
	@RequestMapping(value="/room/add.do",method=RequestMethod.POST,produces=MediaType.APPLICATION_JSON_VALUE)
	 public @ResponseBody String addRoom(@RequestBody RoomReqDTO roomReqDTO) {
		 
		 return null;
	 }
	
	
	//查询户型
	@RequestMapping("/apartmentshape/query.do")
	public @ResponseBody ApartmentShapeReqDTO query() {
		
		return null;
	}
	
	//删除房间
	@RequestMapping("/delete/delete.do")
	public @ResponseBody RoomReqDTO delete(@RequestBody Integer id) {
		
		return null;
	}
//删除房间
	@RequestMapping("/delete/delete.do")
	public @ResponseBody RoomReqDTO delete(@RequestBody Integer id) {
		
		return null;
	}
}
